//try to konw what will be output.
import java.util.ArrayList;
public class SR5_29
{
  public static void main(String []args)
  {
    ArrayList<String> names = new ArrayList<String>();
    names.add("Andy");
    names.add("Betty");
    names.add(1,"Chet");
    names.add(1,"Don");
    names.remove(2);
    System.out.println(names);
   }
}   
